Skip to content
This repository has been archived by the owner on Aug 24, 2024. It is now read-only.

Add initial micropub content and tag update support #8

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

1dom
Copy link
Contributor

@1dom 1dom commented Aug 16, 2024

Initial attempt to add micropub update support.

It had clearly already been started/tried. I hooked up the update function but realised it literally just updates the content of the post, it doesn't update any associated objects. I added the logic for tags, and then realised there were other objects too.

The objects are all already created in send_create(), so rather than duplicating logic into a half complete send_update(), a better approach would be just to rewrite send_create to something like "send_change" which then can update or create depending on if the thing already exists. I did look into doing that, but it gets a little confusing in places.

@nigini
Copy link
Member

nigini commented Aug 22, 2024

Thanks for attempting this... Would it be better to break this down into smaller parts, then? I can see that the create_or_update_post needs to be created and tested first, right? Any other steps?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants